package RevolCraft.Common;

import RevolCraft.Handlers.RenderHandler;
import RevolCraft.Renderers.MachineBlockRenderer;
import RevolCraft.TileEntities.TileEntityElectricFurnace;
import RevolCraft.TileEntities.TileEntityGenerator;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.Configuration;

public class ClientProxy extends CommonProxy {
	public static String blockTex = "/RevolCraft/Resources/Blocks.png";
	public static String itemTex = "/RevolCraft/Resources/Items.png";
	
	@Override
	public void registerRenderThings()
	{
		MinecraftForgeClient.preloadTexture(blockTex);
		MinecraftForgeClient.preloadTexture(itemTex);
		
		ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGenerator.class, new MachineBlockRenderer());
		ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElectricFurnace.class, new MachineBlockRenderer());
		
		RenderingRegistry.registerBlockHandler(new RenderHandler());
	}
}
